import request from '@/utils/request'

/**
 * 刷新token
 */
export function refreshToken() {
	return request({
		url: '/system/auth/refresh-token',
		method: 'POST',
		headers: {
			isToken: true,
			refreshToken: true
		}
	})
}

/**
 * 验证token有效性
 */
export function validateToken() {
	return request({
		url: '/system/auth/validate-token',
		method: 'GET'
	})
}